package com.olympus.hermes.common.bean;

import com.olympus.hermes.common.constants.BaseEnum;
import lombok.Builder;
import lombok.Data;

import java.sql.ResultSet;

/**
 * @author Mickey
 * @since 2021/1/21
 */
@Data
@Builder
public class Result {

    private Integer page;

    private Object data;

    private String message;

    private Boolean success;

    private Long total;

    private Integer status;

    public static Result ofError() {
        return Result.builder().build();
    }

    public static Result ofError(BaseEnum baseEnum) {
        return Result.builder().build();
    }

    public static Result ofError(String msg) {
        return Result.builder().build();
    }
}
